<?php
//include the functions.php
require "include/functions.php";

check_session();

?>

<html>
<head>
<title>Home Electronics - Shopping Home</title>

<link rel="stylesheet" href="include/styles.css" type="text/css">

</head>
<body>
<div align="center">
	<div id="topmenu"> <!-- logo + login/register menu -->
		<ul>
		<?php top_menu(); ?>	
		</ul>
    </div>
	<div id="header" align="right">
		<form name="form1" method="post" action="#">
			<tr>
				<td height="35" width="78"><a>Search Products</a></td>
				<td height="35" width="3">:</td>
				<td height="35" width="294"><input name="mysearch" type="text" id="mysearch">&nbsp;&nbsp;&nbsp;</td>
			</tr>
		</form>
    <div id="menubar"> <!-- Menu buttons -->
  		<ul>
			<li><a href="index.php" title="Home"><span>Home</span></a></li>
			<li><a href="#" title="Electrical"><span>Electrical</span></a></li>
	    </ul>
	</div>
</div>


<div id="page">
	
<?php 

if ( $_SESSION['name'] != '' ) 
{ 
print('Logged in as: '.$_SESSION['name'].''); 
} 

else 
{ 
echo "Login -- Register"; 
} 
?> 



</div> 

</div> <!-- end of page DIV -->


</div>

</body>
<html>
	




